<template>
    <div class="app-container">
      <el-form :inline="true" class="demo-form-inline" style="padding: 5px 20px;">
        <el-form-item label="批改试卷">
          <el-input v-model="answerQuery.number" placeholder=""></el-input>
        </el-form-item>
          <el-button type="primary" @click="correctTest()">批改</el-button>
      </el-form>

      <el-form :inline="true" class="demo-form-inline" style="padding: 5px 20px;">
        <el-form-item label="提交试卷">
          <el-input v-model="answerQuery.class" placeholder=""></el-input>
        </el-form-item>
          <el-button type="primary" @click="submitTest()">提交</el-button>
      </el-form>

  </div>
</template>

<script>
    import PanThumb from "@/components/PanThumb"

    export default {
        components:{PanThumb},
        data(){
            return {
                cur:1,
                size:5,
                answerQuery:{
                },
                list: null,
                total: 0
            }
        },
        methods:{
            submitTest(){
                //400 list类型参数
                this.$axios.post("/examsystem/answer/submitTest",
                    {
                        data:{answerList: this.answerQuery}
                    }
                )
                .then(res=>{
                    console.log(res)
                })
            },
            correctTest(){
                this.$axios.post("/examsystem/answer/correct",
                    {
                        data:{correctBean: this.answerQuery}
                    }
                )
                .then(res=>{
                    console.log(res)
                    //批改页面
                })
            }
        },
    }
</script>